// DlgCustom.cpp : implementation file
//

#include "stdafx.h"
#include "resourcemake.h"
#include "DlgCustom.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgCustom dialog


CDlgCustom::CDlgCustom(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgCustom::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgCustom)
	m_nWidth = 0;
	m_nHeight = 0;
	//}}AFX_DATA_INIT
}


void CDlgCustom::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgCustom)
	DDX_Text(pDX, IDC_EDIT1, m_nWidth);
	DDV_MinMaxInt(pDX, m_nWidth, 0, 3600);
	DDX_Text(pDX, IDC_EDIT2, m_nHeight);
	DDV_MinMaxInt(pDX, m_nHeight, 0, 3600);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgCustom, CDialog)
	//{{AFX_MSG_MAP(CDlgCustom)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgCustom message handlers

void CDlgCustom::OnOK() 
{
	UpdateData();
	
	CDialog::OnOK();
}
